Promotion JumpStart Guide
This JumpStart guide is designed to help you create a basic promotion setup without requiring you to read all of the documentation.
Prerequisites
- The URLs of the source and target RunMyJobs instances.
- The credentials and permissions necessary to create Remote System objects and Process Definitions in both systems. For cloud environments, technical user credentials are required.
- A Process Definition to promote from the source instance to the target instance. This is referred to here as My_Process_Definition.
Conventions
In this scenario, we are promoting My_Process_Definition from the Development cloud environment to the Test cloud environment.
- Development (source) system URL:
https://dublin.runmyjobs.cloud/jumpstart/dev
- Test (destination) system URL:
https://dublin.runmyjobs.cloud/jumpstart/test
Note: In an on-premises environment with a URL of https://server1.example.com/redwood
, the name of the source Remote System would be redwood
.
Performing a Simple Promotion
Follow the steps below to perform a simple promotion.
-
Create a destination Remote System object.
- In the Development environment, navigate to Promotion > Remote Systems.
- Click to create a new Remote System.
- Enter
jumpstart_test
into the Name field. - Select Destination (or Both) from the Type dropdown list.
- Enter the URL of the Test environment in the Location (URL) field.
- Enter the Username and Password.
- Click Save & Close.
- Create a source Remote System object.
- In the Test environment, navigate to Promotion > Remote Systems.
- Click to create a new Remote System.
- Enter
jumpstart_dev
into the Name field. - Select Source (or Both) from the Type dropdown list.
- Click Save & Close.
- Promote My_Process Definition from Development to Test.
- In the Development environment, navigate to Processes > Definitions and right-click My_Process_Definition.
- Choose Promote > Promote to System from the context menu and select jumpstart_test as the Remote System object.
Creating a Promotion Workflow with Review
This section describes how to create a promotion workflow from Development to Test that includes a confirmation step, where an Operator on the Test instance must respond to an Operator Message before the promotion is completed.
- In the Test environment, navigate to Promotion > Remote Systems.
- Create a Remote System of type Source named
*
. The asterisk makes this a "catch-all" Remote System, meaning that it will be used for any incoming promotion requests when RunMyJobs can't find a Remote System object that matches the source instance's name. - Select System_Import_Archive_WithApproval from the Push Acceptor Process Definition dropdown list.
- Click Save & Close.
- In the Development environment, navigate to Processes > Definitions and right-click My_Process_Definition.
- Choose Promote > Promote to System from the context menu and select jumpstart_test as the Remote System object.
- In the Test environment, navigate to Monitoring > Operator Messages.
- Locate the Operator Message Should the car file that is attached to this Chain Definition be imported into this system?.
- In the Send Object column, choose XXXX - Raise an Operator Message (where XXXX is the ID of the process). A new tab displays for the System_OperatorMessage process.
- Choose Show in diagram from the context menu. A new tab displays with a diagram of the Chain.
- On the leftmost box in the diagram, click the Files icon and select the
carin.car
file. You can now unzip this file and inspect its contents. - On the Operator Messages tab, right-click the Operator Message and choose Reply from the context menu.
- Indicate whether you want to import the CAR file by choosing Yes or No.
Enabling LockDown
LockDown is a setting that restricts imports to specific defined Remote System objects.
To enable LockDown:
- In the Test environment, navigate to Processes > Definitions.
- Locate System_Import_Settings and select Submit from its context menu.
- Choose Yes from the Lockdown dropdown list, then submit the Process Definition.
Verifying LockDown
To verify that LockDown is working:
- In the Test environment, rename the jumpstart_dev Remote System you created above to
jumpstart_old
. - In the Test environment, rename the * Remote System you created above to
invalid
. - Navigate to Promotion > Remote Systems, rename the Remote System * to *invalid.
- In the Development environment, navigate to Processes > Definitions and right-click My_Process_Definition.
- Choose Promote > Promote to System from the context menu and select jumpstart_test as the Remote System object.
- Right-click the System_Promote Process Definition and choose Monitor Related Processes from the context menu.
- Note that the process has reached Completed status. Even though Lockdown is enabled in the Test environment, the promotion is considered complete in the Development environment.
- In the Test environment, navigate to Monitoring > Processes and choose Custom Maintenance (Background) Processes from the Filter dropdown list.
- Note that the Import definitions from: System_XXXXX_XXXXXXX.car process has reached Error status.
- Inspect the process'
stderr.log
file. Note the exceptionjava.lang.RuntimeException: Lockdown is enabled
. This indicates that the import of the CAR file was not completed.